import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'home',
      component: HomeView,
    },
    {
      path: '/arcade',
      name: 'arcade',
      component: HomeView,
    },
    {
      path: '/casual',
      name: 'casual',
      component: HomeView,
    },
    {
      path: '/ranking',
      name: 'ranking',
      component: () => import('../views/RankingView.vue'),
    },
    {
      path: '/arcade-ranking',
      name: 'arcadeRanking',
      component: () => import('../views/ArcadeRankingView.vue'),
    },
    {
      path: '/casual-ranking',
      name: 'casualRanking',
      component: () => import('../views/ArcadeRankingView.vue'),
    },
    {
      path: '/room',
      name: 'room',
      component: HomeView,
    },
    {
      path: '/profile',
      name: 'profile',
      component: HomeView,
    },
    {
      path: '/login',
      name: 'login',
      component: () => import('../views/LoginView.vue'),
    },
    {
      path: '/register',
      name: 'register',
      component: () => import('../views/RegisterView.vue'),
    },
  ],
})

export default router
